﻿using Medical.Domain.Base;
using Medical.Domain.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Medical.Domain.RecoveryCleaning
{
    /// <summary>
    /// 清洗登记实体
    /// </summary>
    public  class CleaningRegistration:BaseEntity
    {

        /// <summary>
        /// 清洗方式
        /// </summary>
        public string CleaningMode { get; set; } = null!;
        
        /// <summary>
        /// 清洗设备（设备管理表）
        /// </summary>
        public int CleaningEquipment { get; set; }


        /// <summary>
        /// 清洗批次
        /// </summary>
        public string CleaningBatch {  get; set; }=null!;

        /// <summary>
        /// 清洗人
        /// </summary>
        public string Cleaner {  get; set; } =null!;

        /// <summary>
        /// 清洗时长（分钟）
        /// </summary>
        public int CleaningDuration { get; set; }


        /// <summary>
        /// 开始时间（清洗时间）
        /// </summary>
        public  DateTime StartTime { get; set; }=DateTime.Now;
        /// <summary>
        /// 完成时间（清洗时间）
        /// </summary>
        public DateTime FinishTime {  get; set; }=DateTime.Now;

        /// <summary>
        /// 清洗结果，
        /// 'true'==合格
        /// 'false'==不合格
        /// </summary>
        public bool  CleaningResult { get; set; }


        /// <summary>
        /// 完成人
        /// </summary>
        public string FinishPerson { get; set; }

        /// <summary>
        /// 清洗状态
        /// </summary>
        public RecoveryStatusEnum CleaningState { get; set; }

        /// <summary>
        /// 物品IDs
        /// </summary>
        public List<int> ItemIds {  get; set; }


    }
}
